package com.example.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "nacos-provider",fallbackFactory =NacosFallback.class)
@Service
public interface NacosService {

    @GetMapping("/provider/{username}/{age}")
     String provider(@PathVariable(value = "username",required = false) String username,
                           @PathVariable(value = "age",required = false) Integer age);
    @GetMapping("/teachers")
    String teachers();
}
